<?php $this->placeholder('onReady')->captureStart() ?>
    $("#<?php echo $this->id_tablesorter?>").tablesorter({sortList: [[15,1],[0,1]]} ); 
<?php $this->placeholder('onReady')->captureEnd() ?>


<?php echo $this->anchor($this->controllerName.'/insertar','Añadir Proyecto',array('class'=>'utiladd'));?>


<?if($this->hasFilterParams):?>

<?if($this->rows):?>
<div class="contenedor_tablesorter">

<table id="<?php echo $this->id_tablesorter?>" width="100%" class=""> 
    <caption>
       <div id="total_table_filter" style="float: right;">Display <span class="filtradas"><?=count($this->rows)?></span> of <?=count($this->rows)?></div>    
    </caption>
    <thead>
		<tr>
            <th><?php echo $this->translate("Actividad");?> </th>
            <th><?php echo $this->translate("DC");?> </th>
            <th><?php echo $this->translate("Área");?> </th>
            <th><?php echo $this->translate("Proyecto")?></th>
            <th><?php echo $this->translate("Fecha Apertura")?></th>
            <th><?php echo $this->translate("Fecha Entrega")?></th>
            <th><?php echo $this->translate("Fecha Cierre")?></th>
            <th><?php echo $this->translate("Prioridad")?></th>
            <th><?php echo $this->translate("Responsable")?></th>
            <th><?php echo $this->translate("Estado")?></th> 
            <th><?php echo $this->translate("Control Económico")?></th> 
            <th><?php echo $this->translate("CMI")?></th>
            <th><?php echo $this->translate("PRL")?></th> 
            <th><?php echo $this->translate("GMA")?></th> 
            <th><?php echo $this->translate("Notas")?></th>
            <th class="configure" ></th> 
    	</tr>
    </thead>
    <tbody>
        <?php echo $this->partialLoop($this->controllerName.'/fila.phtml', (array)$this->rows); ?>	
    </tbody>
</table>
<div id="total_table_filter" style="float: left;">Display <span class="filtradas"><?=count($this->rows)?></span> of <?=count($this->rows)?></div>

</div>
<?else: echo $this->msg('No se han encontrado resultados','atencion');endif?>
<?else: echo $this->msg('Usa los filtros para hacer una busqueda','atencion');endif?>